package cn.ahaiahaixx.dp.thread;

/**
 * 多线程核心,Runnable
 * @author Aiden Pearce
 *
 */
public class MyRunnable implements Runnable{
  
  private static final String INFO="多线程演示字符串！";

  @Override
  public void run() {
    try {
      //当前线程等待毫秒数
      Thread.sleep(1);
      for (char c:INFO.toCharArray()) {
        System.out.print(c);
      }
      System.out.println();
    } catch (Exception e) {
      
    }
  }
}
